
SERVER_PORT = 11011
DEBUG = False
SQLALCHEMY_ECHO = False

AUTH_COOKIE_NAME = "baizai_food"

# 过滤url 无需登录即可访问
IGNORE_URLS = [
    "^/user/login"
]

IGNORE_CHECK_LOGIN_URLS = [
    "^/static",
    "^/favicon.ico"
]

# 过滤url 无需登录即可访问
API_IGNORE_URLS = [
    "^/api"
]

# 页数
PAGE_SIZE = 5
PAGE_DISPLAY = 10

STATUS_MAPPING = {
    "1": "正常",
    "0": "删除"
}

SEX_MAPPING = {
    "0": "未知",
    "1": "男",
    "2": "女"
}

MINA_APP = {
    'appid': 'wx16f10f1373c8327f',
    'appsecret': 'c0b4a6ff36face447126fc99b6842d03',
    'paykey': '8yVSd3TamAp6SjCszj3IsJ5HhMHmmBkP',
    'mch_id': '1305638280',
    'callback_url': '/api/order/callback2'
}

UPLOAD = {
    'ext': ['jpg', 'gif', 'bmp', 'jpeg', 'png'],
    'prefix_path': '/web/static/upload',
    'prefix_url': '/static/upload'
}

APP = {
    'domain': "http://127.0.0.1:8999"
}

PAY_STATUS_MAPPING = {
    "1": "已支付",
    "-8": "待支付",
    "0": "已关闭"
}

PAY_STATUS_DISPLAY_MAPPING = {
    "0": "订单关闭",
    "1": "支付成功",
    "-8": "待支付",
    "-7": "待发货",
    "-6": "待确认",
    "-5": "待评价",
}
